package com.study.vo.company;

import com.study.entity.company.Company;
import com.study.entity.company.Department;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 公司的部门信息
 *
 * @Author wfw
 * @Date 2020/07/11 17:37
 */
@Data
@NoArgsConstructor
public class DeptListResult {
    private String companyId;
    private String companyName;
    /**
     * 公司联系人
     */
    private String companyManage;
    private List<Department> depts;

    public DeptListResult(Company company, List depts) {
        this.companyId = company.getId();
        this.companyName = company.getName();
        // 公司联系人
        this.companyManage = company.getLegalRepresentative();
        this.depts = depts;
    }
}
